package com.hsb.service;

import com.hsb.entity.Book;

import java.util.List;

public interface BookService {
    //增加一条记录
    int insert(Book book);

    //根据id删除记录
    int deleteById(int id);

    //根据id查询记录
    Book queryById(int id);

    //查询所有记录
    List<Book> queryAll();

    //根据id修改记录
    int updateById(Book book);
}